package dhz.storage.controllers;

import dhz.storage.util.Response;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/util")
public class UtilControllers {
    @GetMapping("/unauthorized")
    public Response unauthorized(){
        Response res = new Response(401);
        res.setMessage("Unauthorized Visit!");
        return res;
    }
}
